#ifdef main
#undef main
#endif

#include "include.h"

using namespace std;

string OfficialServerIpAddress = "g.swtich.com";
string OfficialServerPort = "2012";

int main( int argc, char* args[] ) 
{
	int iargs;
	for (iargs = 0; iargs < argc; iargs++)
	{
		if ( string(args[iargs]) == "-connect" )
		{
			if ( args[iargs+1] )
			{
				OfficialServerIpAddress = string(args[iargs+1]);
				if ( args[iargs+2] )
				{
					OfficialServerPort = string(args[iargs+2]);
				}
				break;
			}
		}
	}

	/*cout << "[CLIENT] GAMEMODE: "   << "Free for All"          << endl
		 << "[CLIENT] IP ADDRESS: " << OfficialServerIpAddress << endl
		 << "[CLIENT] PORT: "       << OfficialServerPort      << endl;
	*/

	onMainGame();

	return 1;
}